<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Tj2's Blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>绿萝间 (old posts, page 1) | 绿萝间</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="assets/css/ipython.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="https://muxuezi.github.io/index-1.html">
<link rel="prev" href="index-2.html" type="text/html">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true
    },
    displayAlign: 'center', // Change this to 'center' to center equations.
    "HTML-CSS": {
        styles: {'.MathJax_Display': {"margin": 0}}
    }
});
</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>

<!-- Menubar -->

<nav class="navbar navbar-inverse navbar-static-top"><div class="container">
<!-- This keeps the margins nice -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="https://muxuezi.github.io/">

                <span id="blog-title">绿萝间</span>
            </a>
        </div>
<!-- /.navbar-header -->
        <div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
            <ul class="nav navbar-nav">
<li>
<a href="archive.html">Archive</a>
                </li>
<li>
<a href="categories/">Tags</a>
                </li>
<li>
<a href="rss.xml">RSS feed</a>

                
            </li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
    </div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content" role="main">
    <div class="body-content">
        <!--Body content-->
        <div class="row">
            
            

    
<div class="postindex">
    <article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/tmux.html" class="u-url">tmux</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/tmux.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>To remedy the situation, here is a short script that you can invoke and that will kill all your running tmux sessions.
1   tmux ls | awk '{print $1}' | sed 's/://g' | xargs -I{} tmux kill-session -t {}</p>
<p>You can put it into a nice little alias</p>
<p>1   alias kts='tx ls | awk '{print $1}' | sed 's/://g' | xargs -I{} tmux kill-session -t {}'</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/ubuntu-chroot-arm-upgrade.html" class="u-url">ubuntu-chroot-arm-upgrade</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/ubuntu-chroot-arm-upgrade.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf &gt; /dev/null</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/urllib2-quote-gbk.html" class="u-url">urllib2-quote-gbk</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/urllib2-quote-gbk.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>import urllib2
name = u'张宏科'</p>
<p>school = u'北京交通大学'</p>
<p>transfer = lambda temp : urllib2.quote(temp.encode('utf-8'))</p>
<p>url = 'https://duckduckgo.com/?q=%s+%s&amp;t=lm' % (transfer(name),transfer(school))</p>
<p></p>
<pre style="color: #000000;">https://duckduckgo.com/?q=%E5%BC%A0%E5%AE%8F%E7%A7%91+%E5%8C%97%E4%BA%AC%E4%BA%A4%E9%80%9A%E5%A4%A7%E5%AD%A6&amp;t=lm</pre>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/vernacular.html" class="u-url">vernacular</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/vernacular.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<div><span style="font-size: 26px; font-weight: bold; line-height: 1.3846153846;">vernacular</span></div>
<div>
<div><a title="添加该词条到生词本"> </a></div>

<div>英 <strong>[</strong><strong lang="EN-US" xml:lang="EN-US">və'nækjələ(r)</strong><strong>]</strong>

<div></div>

美 <strong>[</strong><strong lang="EN-US" xml:lang="EN-US">vɚˈnækjəlɚ</strong><strong>]</strong>



</div>

</div>

<div>



<strong>n.</strong><label>白话；</label> <label>行话；</label> <label>本国语；</label> <label>动植物的俗名</label>



<strong>adj.</strong><label>本国语的；</label> <label>白话的；</label> <label>方言的；</label> <label>本国的</label>



想起合肥话-<a title="合肥话" href="http://zh.wikipedia.org/zh/%E5%90%88%E8%82%A5%E8%AF%9D" target="_blank">维基百科</a>-<a title="张爱玲" href="http://news.163.com/09/0504/03/58EJJ3QD000120GR.html" target="_blank">张爱玲合肥话</a>-摪（怎样）搞啊？”“摪搞”



讲给大姐听，她讲了《追风筝的人》作者<a href="http://book.douban.com/series/19760">卡勒德·胡赛尼作品</a>《群山回唱》里面我们每年在家都能听到的“



以斯敏列”-以真主之名



</div>

<p></p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/vim-replace.html" class="u-url">vim-replace</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/vim-replace.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>%s/vivian/sky/（等同于 ：g/vivian/s//sky/） 替换每一行的第一个 vivian 为 sky 
%s/vivian/sky/g（等同于 ：g/vivian/s//sky/g） 替换每一行中所有 vivian 为 sky</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/wait.html" class="u-url">wait</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/wait.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<ol>
<li>三位组成的数列有等差数列 : 6个球一共有1,107,568种组合，这是小学就会的；6个球中有任意四个至少一个成等差数列的很少，占总数5%；但是任意三个至少一个成等差数列的很多，占总数63%</li>
    <li>新一期的号码分割更有可能出现在间隔中 : 如果按照从小到大排序，(1,2,3,4,5,6)是第一位，(28,29,30,31,32,33)是最后一位。目前出现的所有1377期中，相邻两个直接的间隔，就是位置之差。有这样的特点：最大间隔4586，最小间隔1。其中， 339个间隔超过1000，而且有碎片化的趋势，即新一期的号码分割更有可能出现在这些间隔中</li>
    <li>Combination(6,3)频率是（0，1，2）：6个号码的任意三位组成的数列，Combination(6,3)共20个。如果按照重复率统计的话。新一期6个号码任意三位组成的数列出现的重复率不超过2，即这20个三位数列的频率是（0，1，2），即在以往所有出现过的6个号码任意三位组成的数列中，新一期6个号码任意三位组成的数列将出现的频率是：0次（没出现过）、1次（出现过1次）、2次（出现过2次，这类一般只有一个）</li>
    <li>如果在这些超过1000的间隔里面，取出某个区间，重新筛选出无4阶等差、有3阶段等差、3阶段等差仅含（0，1，2），最后还有重复抽样的概率约束</li>
</ol>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/weizhuang.html" class="u-url">weizhuang</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/weizhuang.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>人人尽说江南好
游人只合江南老</p>
<p>春水碧于天</p>
<p>画船听雨眠</p>
<p>垆边人似月</p>
<p>皓腕凝霜雪</p>
<p>未老莫还乡</p>
<p>还乡须断肠</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/win7-wifi.html" class="u-url">win7-wifi</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/win7-wifi.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>netsh wlan set hostednetwork mode=allow ssid=JoysBoy.Net key=joysboy.net
@echo off</p>
<p>choice /C 12 /M "开启wifi请输入1，关闭wifi请输入2</p>
<p>if errorlevel 2 goto off</p>
<p>if errorlevel 1 goto on</p>
<p>:on</p>
<p>netsh wlan start hostednetwork </p>
<p>goto end</p>
<p>:off</p>
<p>netsh wlan stop hostednetwork</p>
<p>goto end</p>
<p>:end</p>
<p>echo 网络设置完毕</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/windows-open-cmd.html" class="u-url">windows-open-cmd</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/windows-open-cmd.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>打开“我的电脑”，点击菜单中的“工具”－“文件夹选项”，选择“文件类型”，找到“(无)资料夹”，点“高级”，“新建”，在“操作”中填入“CMD”，“用于执行操作的应用程序”中填入cmd.exe /k cd %1</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/xz-upzip.html" class="u-url">xz-upzip</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/xz-upzip.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>$xz -d <strong><em>.tar.xz
$tar -xvf  </em></strong>.tar</p>
</div>
    </div>
    </article>
</div>

        <nav class="postindexpager"><ul class="pager">
<li class="previous">
                <a href="index-2.html" rel="prev">Newer posts</a>
            </li>
        </ul></nav>
</div>
        <!--End of body content-->

        <footer id="footer">
            Contents © 2017         <a href="mailto:muxuezi@gmail.com">Tao Junjie</a> - Powered by         <a href="https://getnikola.com" rel="nofollow">Nikola</a>         
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0">
<img alt="Creative Commons License BY-NC-SA" style="border-width:0; margin-bottom:12px;" src="http://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"></a>
            
        </footer>
</div>
</div>


            <script src="assets/js/all-nocdn.js"></script><script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
    moment.locale("en");
    fancydates(0, "YYYY-MM-DD HH:mm");
    </script><!-- end fancy dates --><script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-51330059-1', 'auto');
  ga('send', 'pageview');

</script>
</body>
</html>
